package demo.standard;

public class ConcreteCommand1 implements ICommand {

    private Receiver receiver;

    public ConcreteCommand1(Receiver receiver) {
        this.receiver = receiver;
    }

    @Override
    public void exec() {
        System.out.println("处理命令1");
        receiver.action1();
    }
}
